package mydesign.chapters01.v2;


import mydesign.chapters01.v2.flybehavior.FlyWithings;
import mydesign.chapters01.v2.quackbehavior.Quack;

/**
 * 红头鸭
 */
public class RedDuck extends Duck {

    public RedDuck(){
      flyBehavior = new FlyWithings();
      quackBehavior = new Quack();
    }

    public void display(){
        System.out.println("我是红头鸭");
    }



}
